import request from '@/utils/request'

// 查询LED列表
export function listLed(query) {
  return request({
    url: '/vqms/led/list',
    method: 'get',
    params: query
  })
}

// 查询LED详细
export function getLed(id) {
  return request({
    url: '/vqms/led/' + id,
    method: 'get'
  })
}

// 新增LED
export function addLed(data) {
  return request({
    url: '/vqms/led/add',
    method: 'post',
    data: data
  })
}

// 修改LED
export function updateLed(data) {
  return request({
    url: '/vqms/led/update',
    method: 'put',
    data: data
  })
}

// 删除LED
export function delLed(id) {
  return request({
    url: '/vqms/led/' + id,
    method: 'delete'
  })
}